package com.tledu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

/**
 * 专题
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@TableName("oc_subject")
public class Subject {
    //专题主键
    @TableId(value = "subject_id", type = IdType.AUTO)
    private Integer subject_id;
    //专题名称
    @TableField(value = "subject_title")
    private String subject_title;
    //专题描述
    @TableField(value = "subject_desc")
    private String subject_desc;
    //专题的banner图
    @TableField(value = "image")
    private String image;
    //排序字段
    @TableField(value = "order_by")
    private Integer order_by;
    //专题状态
    @TableField(value = "subject_status")
    private Integer subject_status;
    //备注说明
    @TableField(value = "remark")
    private String remark;
    //创建人
    @TableField(value = "CREATED_BY")
    private String created_by;
    //创建时间
    @TableField(value = "CREATED_TIME")
    private Date created_time;
    //更新人
    @TableField(value = "UPDATED_BY")
    private String updated_by;
    //更新时间
    @TableField(value = "UPDATED_TIME")
    private Date updated_time;
    //是否启用
    @TableField(value = "enable")
    private Integer enable;
}
